package com.guigu.www.controller;


import com.guigu.www.pojo.Role;
import com.guigu.www.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author DengHao
 * @since 2021-10-20
 */
@RestController
@RequestMapping("/CommonRole")
public class RoleController {

    @Autowired
    private RoleService roleService;


    @PostMapping("/byId")
    public Role byId(Integer roleId){
        return roleService.byId(roleId);
    }
}

